﻿'use strict';

var resumeApp = angular.module('resumeApp', ['ngResource']);

resumeApp.config(['$routeProvider', function ($routeProvider) {
    $routeProvider
        .when('/home', {
            controller: 'homeCtrl',
            templateUrl: 'app/views/home.html'
        })
        .when('/resumes', {
            controller: 'resumeCtrl',
            templateUrl: 'app/views/resumes.html'
        })
        .when('/admin', {
            controller: 'adminCtrl',
            templateUrl: 'app/views/admin.html'
        })
        .when('/resumeNew', {
            controller: 'resumeEditCtrl',
            templateUrl: 'app/views/newResume.html'
        })
        .when('/personalInfos', {
            controller: 'personalInfoCtrl',
            templateUrl: 'app/views/personalInfos.html'
        })
        .when('/personalInfoEdit/:id', {
            controller: 'personalInfoEditCtrl',
            templateUrl: 'app/views/personalInfoEdit.html'
        })
        .otherwise({ redirectTo: '/home' });


}]);